package com.example.phoneshop.entity;

import java.util.List;

/**
 * @author Chen
 * @date 2018/7/919:07
 */

    public class PageBean<T> {

        private int page; // 页码
        private int pageSize; // 单页数据量
        private int start;
        private int totalPage;
        private List<T> list;

        public int getTotalPage() {
            return totalPage;
        }

        public void setTotalPage(int totalPage) {
            this.totalPage = totalPage;
        }

        public List<T> getList() {
            return list;
        }

        public void setList(List<T> list) {
            this.list = list;
        }

        public PageBean(int page, int pageSize) {
            super();
            this.page = page;
            this.pageSize = pageSize;
        }

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getStart() {
            return (page - 1) * pageSize;
        }


    }

